package com.framework.boc.evaluation.constant;

import com.framework.boc.evaluation.service.BeanPrototypeService;
import com.framework.boc.evaluation.service.BeanService;
import com.framework.boc.evaluation.service.BeanSingletonService;
import com.framework.boc.evaluation.util.SpringContextUtil;

public enum DemoEnum {

    SINGLETON(SpringContextUtil.getBean(BeanSingletonService.class)),

    PROTOTYPE(SpringContextUtil.getBean(BeanPrototypeService.class))

    ;

    BeanService beanService;

    DemoEnum(BeanService beanService) {
        this.beanService = beanService;
    }

    public BeanService getBeanService() {
        return beanService;
    }
}
